package com.qf.controller;

import com.qf.service.AdminService;
import com.qf.service.UserService;
import com.qf.service.impl.AdminServiceImpl;
import com.qf.service.impl.UserServiceImpl;
import com.qf.servlet.BaseServlet;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/admin")
public class AdminController extends BaseServlet {
    private AdminService adminService = new AdminServiceImpl();

    /**
     * 修改密码
     * @param request
     * @param response
     */
    public void doResetPassword(HttpServletRequest request, HttpServletResponse response) throws IOException {
        adminService.modify(request, response);
    }
}
